package com.sheliduan.itlearning.common.domain.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: 断舍离
 * @date: 2025/2/8 20:44
 * @description: 订单表实体类
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("t_order")
public class OrderDO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    // 课程id
    // 确定一个订单的课程需要通过type和courseId一起确定
    private Integer courseId;

    // 订单编号
    private String number;

    // 该课程订单的课程类型(0/1)
    private Integer type;

    // 订单价格
    private Double price;

    // 下单时间
    private Date orderTime;

    // 下单用户id
    private Integer userId;

    // 订单状态
    private Integer status;
}
